package com.dbf.forum.common.dao;

import javax.persistence.Query;
import javax.persistence.TypedQuery;

public interface CommonDao {
	
	public <T> T create(final T t);

    public <T> void delete(Class<? extends T> clazz, final Object id) ;

    public <T> T find(Class<? extends T> clazz, final Object id) ;

    public <T> T update(final T t) ;
    
    public <T> TypedQuery<T> createQuery(Class<? extends T> clazz, String hql);
    
    public Query createQuery(String hql);

}
